package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class WebPlayerShareEntityServiceEndpoint  implements Sequenceable, Serializable {

    @SerializedName("serializedShareEntity")
    private String serializedShareEntity;

    public static final Sequenceable.Producer<WebPlayerShareEntityServiceEndpoint> CREATOR = new Producer<WebPlayerShareEntityServiceEndpoint>() {
        @Override
        public WebPlayerShareEntityServiceEndpoint createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            WebPlayerShareEntityServiceEndpoint webPlayerShareEntityServiceEndpoint = new WebPlayerShareEntityServiceEndpoint();
            webPlayerShareEntityServiceEndpoint.unmarshalling(parcel);
            return webPlayerShareEntityServiceEndpoint;
        }
    };
    
    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeString(this.serializedShareEntity);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.serializedShareEntity=parcel.readString();
        return true;
    }

    public String getSerializedShareEntity() {
        return serializedShareEntity;
    }

    public void setSerializedShareEntity(String serializedShareEntity) {
        this.serializedShareEntity = serializedShareEntity;
    }

    @Override
    public String toString() {
        return "WebPlayerShareEntityServiceEndpoint{" +
                "serializedShareEntity='" + serializedShareEntity + '\'' +
                '}';
    }
}
